package nonogram;

import java.util.Comparator;

public class LineSolvingComparator implements Comparator<Line> {
	
	@Override
	public int compare(Line x, Line y) {
		int xHeuristic = x.getLineHeuristic();
		int yHeuristic = y.getLineHeuristic();
		
		if (xHeuristic < yHeuristic) {
			return -1;
		}
		if (xHeuristic > yHeuristic) {
			return 1;
		}
		
		return 0;
	}

}
